import request from '@/utils/request'

// 查询茶民宿管理列表
export function listHomestay(query) {
  return request({
    url: '/tea/homestay/list',
    method: 'get',
    params: query
  })
}

// 查询茶民宿管理详细
export function getHomestay(id) {
  return request({
    url: '/tea/homestay/' + id,
    method: 'get'
  })
}

// 新增茶民宿管理
export function addHomestay(data) {
  return request({
    url: '/tea/homestay',
    method: 'post',
    data: data
  })
}

// 修改茶民宿管理
export function updateHomestay(data) {
  return request({
    url: '/tea/homestay',
    method: 'put',
    data: data
  })
}

// 删除茶民宿管理
export function delHomestay(id) {
  return request({
    url: '/tea/homestay/' + id,
    method: 'delete'
  })
}
